<template>
  <div id="iscroll_demo">
    <!--is_debug-->
    <sh-iscroll ref="iscroll" :options="{probeType:3,preventDefault: true,mouseWheel: true,scrollbars: true}">
      <div v-for="item in arr">
        {{item}}
      </div>
    </sh-iscroll>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        arr: [],
      }
    },
    beforeMount() {
    },
    mounted() {
      setTimeout(()=>{
        this.arr = [1,2,3,4,5,6,71,1,1,1,1,1,11,1,11,11,1,1,11,1,11,11,1,1,11,1,11,11,1,1,11,1,11,11,1,1,11,1,11,11,1,1,11,1,11,11,1,1,11,1,11,11,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];
        this.$nextTick(()=>{
          console.log("刷新");
          this.$refs.iscroll.refresh();
        })
      },0);
    },
    methods: {}
  }
</script>

<style lang="scss" scoped>
  #iscroll_demo {

  }
</style>
